package com.stu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

@TableName("address")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer addressId;
    private Integer userId;
    private String addressProvince;
    private String addressCity;
    private String addressArea;
    private String addressDetail;
    private Long addressTelno;
    private String addressName;
    private Integer addressStatus;
    private String a1;
    private String a2;

    public Address(Integer addressId, Integer userId, String addressProvince, String addressCity, String addressArea, String addressDetail, Long addressTelno, String addressName, Integer addressStatus) {
        this.addressId = addressId;
        this.userId = userId;
        this.addressProvince = addressProvince;
        this.addressCity = addressCity;
        this.addressArea = addressArea;
        this.addressDetail = addressDetail;
        this.addressTelno = addressTelno;
        this.addressName = addressName;
        this.addressStatus = addressStatus;
    }

    public Address(){}

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public String getAddressProvince() {
        return addressProvince;
    }

    public void setAddressProvince(String addressProvince) {
        this.addressProvince = addressProvince;
    }
    public String getAddressCity() {
        return addressCity;
    }

    public void setAddressCity(String addressCity) {
        this.addressCity = addressCity;
    }
    public String getAddressArea() {
        return addressArea;
    }

    public void setAddressArea(String addressArea) {
        this.addressArea = addressArea;
    }
    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }
    public Long getAddressTelno() {
        return addressTelno;
    }

    public void setAddressTelno(Long addressTelno) {
        this.addressTelno = addressTelno;
    }
    public String getAddressName() {
        return addressName;
    }

    public void setAddressName(String addressName) {
        this.addressName = addressName;
    }
    public Integer getAddressStatus() {
        return addressStatus;
    }

    public void setAddressStatus(Integer addressStatus) {
        this.addressStatus = addressStatus;
    }
    public String geta1() {
        return a1;
    }

    public void seta1(String a1) {
        this.a1 = a1;
    }
    public String geta2() {
        return a2;
    }

    public void seta2(String a2) {
        this.a2 = a2;
    }

    @Override
    public String toString() {
        return "Address{" +
            "addressId=" + addressId +
            ", userId=" + userId +
            ", addressProvince=" + addressProvince +
            ", addressCity=" + addressCity +
            ", addressArea=" + addressArea +
            ", addressDetail=" + addressDetail +
            ", addressTelno=" + addressTelno +
            ", addressName=" + addressName +
            ", addressStatus=" + addressStatus +
            ", a1=" + a1 +
            ", a2=" + a2 +
        "}";
    }
}
